package com.ruoyi.loginfo.domain;

import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 物流轨迹对象 log_track
 *
 * @author ruoyi
 * @date 2023-10-16
 */
public class LogTrack extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 物流轨迹ID
     */
    private Long id;

    /**
     * 物流订单ID
     */
    @Excel(name = "物流订单ID")
    private String logisticsInfoId;

    /**
     * 当前位置纬度
     */
    @Excel(name = "当前位置纬度")
    private Double locationLatitude;

    /**
     * 当前位置经度
     */
    @Excel(name = "当前位置经度")
    private Double locationLongitude;

    /**
     * 物流状态（0/已下单，1/等待揽件，2/已揽件，3/已发货，4/已到达，5/正在派件，6/快递已送达，请前往取件，7/已完成取件）
     */
    @Excel(name = "物流状态", readConverterExp = "0=/已下单，1/等待揽件，2/已揽件，3/已发货，4/已到达，5/正在派件，6/快递已送达，请前往取件，7/已完成取件")
    private Long status;

    /**
     * 物流更新时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "物流更新时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date changeTime;

    /**
     * 商品当前地址
     */
    @Excel(name = "商品当前地址")
    private String locationAddress;

    /**
     * 商品的下一站地址
     */
    @Excel(name = "商品的下一站地址")
    private String nextAddress;

    /**
     * 下一站的纬度
     */
    @Excel(name = "下一站的纬度")
    private Double nextLatitude;

    /**
     * 下一站经度
     */
    @Excel(name = "下一站经度")
    private Double nextLongitude;

    public void setId(Long id) {
        this.id = id;
    }

    public Long getId() {
        return id;
    }

    public void setLogisticsInfoId(String logisticsInfoId) {
        this.logisticsInfoId = logisticsInfoId;
    }

    public String getLogisticsInfoId() {
        return logisticsInfoId;
    }

    public void setLocationLatitude(Double locationLatitude) {
        this.locationLatitude = locationLatitude;
    }

    public Double getLocationLatitude() {
        return locationLatitude;
    }

    public void setLocationLongitude(Double locationLongitude) {
        this.locationLongitude = locationLongitude;
    }

    public Double getLocationLongitude() {
        return locationLongitude;
    }

    public void setStatus(Long status) {
        this.status = status;
    }

    public Long getStatus() {
        return status;
    }

    public void setChangeTime(Date changeTime) {
        this.changeTime = changeTime;
    }

    public Date getChangeTime() {
        return changeTime;
    }

    public void setLocationAddress(String locationAddress) {
        this.locationAddress = locationAddress;
    }

    public String getLocationAddress() {
        return locationAddress;
    }

    public void setNextAddress(String nextAddress) {
        this.nextAddress = nextAddress;
    }

    public String getNextAddress() {
        return nextAddress;
    }

    public void setNextLatitude(Double nextLatitude) {
        this.nextLatitude = nextLatitude;
    }

    public Double getNextLatitude() {
        return nextLatitude;
    }

    public void setNextLongitude(Double nextLongitude) {
        this.nextLongitude = nextLongitude;
    }

    public Double getNextLongitude() {
        return nextLongitude;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("logisticsInfoId", getLogisticsInfoId())
                .append("locationLatitude", getLocationLatitude())
                .append("locationLongitude", getLocationLongitude())
                .append("status", getStatus())
                .append("changeTime", getChangeTime())
                .append("locationAddress", getLocationAddress())
                .append("nextAddress", getNextAddress())
                .append("nextLatitude", getNextLatitude())
                .append("nextLongitude", getNextLongitude())
                .toString();
    }
}
